import React from 'react';
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import MyMain from './myMain.jsx';
import LoginPage from './LoginPage.jsx';
import ResetPassword from './ResetPassword.jsx';
import ProfileEdit from './profileEdit.jsx';  // 确保路径正确
import MySetting from './mySetting.jsx';
import AboutApp from './aboutApp.jsx';
import History from './History';
import BookReading from './bookReading';
import PreferenceEdit from './PreferenceEdit';

const Stack = createNativeStackNavigator();

const My = () => {
  return (
    <Stack.Navigator screenOptions={{ headerShown: false }} >
      <Stack.Screen name="MyMain" component={MyMain} />
      <Stack.Screen name="LoginPage" component={LoginPage} />
      <Stack.Screen name="ProfileEdit" component={ProfileEdit} />
      <Stack.Screen name="MySetting" component={MySetting} />
      <Stack.Screen name="ResetPassword" component={ResetPassword} />
      <Stack.Screen name="AboutApp" component={AboutApp} />
      <Stack.Screen name="History" component={History} />
      <Stack.Screen name="BookReading" component={BookReading} />
      <Stack.Screen name="PreferenceEdit" component={PreferenceEdit} />
    </Stack.Navigator>
  )
}

export default My;
